package com.yunxi.sto.pojo;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.yunxi.core.web.DateJsonDeserializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 借车单查询
 * </p>
 *
 * @author caoYong
 * @since 2019-05-31
 */
@Data
@ApiModel(value="StoVehicleLendOrderQuery对象", description="借车单查询")
public class StoVehicleLendOrderQueryVO implements Serializable {

    @ApiModelProperty(value = "主键ID")
    private String lendOrderId;

    @ApiModelProperty(value = "申请单编号")
    private String lendOrderNo;

    @ApiModelProperty(value = "借用部门名称")
    private String orgName;

    @ApiModelProperty(value = "借用人名称")
    private String staffName;

    @ApiModelProperty(value = "借用人联系方式")
    private String staffPhone;

    @ApiModelProperty(value = "车辆用途(Vehicle_Purpose,1借用,2领用)")
    private Integer vehiclePurpose;

    @ApiModelProperty(value = "单据状态(VehicleLendOrder_State 1车辆未出库,2车辆已出库,3车辆已入库,4已完成,5作废)")
    private String orderState;

    @ApiModelProperty(value = "车辆VIN码")
    private String vin;

    @ApiModelProperty(value = "车系代码")
    private String seriesCode;

    @ApiModelProperty(value = "车系名称")
    private String seriesName;

    @ApiModelProperty(value = "车型代码")
    private String modelCode;

    @ApiModelProperty(value = "车型名称")
    private String modelName;

    @ApiModelProperty(value = "配置代码")
    private String catalogCode;

    @ApiModelProperty(value = "配置名称")
    private String catalogName;

    @ApiModelProperty(value = "借用人部门ID")
    private String orgId;

    @ApiModelProperty(value = "还车时间")
    @JsonDeserialize(using = DateJsonDeserializer.class)
    private String returnTime;

    @ApiModelProperty(value = "开始还车时间")
    @JsonDeserialize(using = DateJsonDeserializer.class)
    private String startReturnTime;

    @ApiModelProperty(value = "结束还车时间")
    @JsonDeserialize(using = DateJsonDeserializer.class)
    private String endReturnTime;

    @ApiModelProperty(value = "创建时间")
    @JsonDeserialize(using = DateJsonDeserializer.class)
    private Date createTime;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    @ApiModelProperty(value = "是否超期(1是0否)")
    private Integer isOverTime;

    @ApiModelProperty(value = "超期天数")
    private Integer overDays;

    @ApiModelProperty(value = "借车时间")
    private Date lendTime;

    @ApiModelProperty(value = "实际还车时间")
    private Date actualReturnDate;

    @ApiModelProperty(value = "出库司机姓名")
    private String outDriverName;

    @ApiModelProperty(value = "入库司机姓名")
    private String inDriverName;

    @ApiModelProperty(value = "库存状态(DealerVehicleStock_InventoryStatus,0在途,1在库,2出库 )")
    private Integer storageStatus;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "借用人ID")
    private String staffId;

}
